package practice.oop;

public enum Gender {
    MALE("男"),
    FEMALE;
    Gender(){

    }
    private String name;
    Gender(String name){
        this.name=name;
    }
    public String getName(){
        return name;
    }
}

class EnumTest{
    public static void main(String[] args) {
        System.out.println(Gender.MALE.getName());
        System.out.println(Gender.MALE.getName());
    }
}